package com.bw.lib_mvicore.ui

import com.bw.lib_mvicore.IView

/**
 * @Author : ZhouZiYao
 * @Time : On 2023/11/17 18:28
 * @Description :
 */
abstract class BaseMviActivity: BaseActivity(), IView {
    /**
     * 创建viewModel
     */
    abstract fun generateViewModel()

    override fun initEnv() {
        super.initEnv()
        generateViewModel()
    }

    /**
     * 处理状态
     */
    override fun onResume() {
        super.onResume()
        handleState()
    }
}